Title
Content
Type
General
Support layout
Responsive, fixed-height, fixed, container documentation
The required script
Https://mipcache.bdstatic.com/static/v1/mip-anim/mip-anim.js
Example
Loading mode with placeholder
layout= "fixed" width=210 height=210 src= "xxx" alt= "an animation" >
layout= "Fixed-height" width=210 height=210 src= "xxxx" >
Just a GIF picture.
layout= "f
Animation effect programming basics-animationandroidAnimation typeAndroid animation consists of four typesIn XMLAlphaGradient transparency animation effectScaleGradient scaling animation effectTranslateAnimation EffectRotateAnimation effects of screen transfer and RotationJava codeAlphaanimationGradient transparency animation effectScaleanimationGradient scaling animation effectTranslateanimationAnimation EffectRotateanimationAnimation effects of screen transfer and RotationAndroid Animation Mod
Detailed description of Property Anim and propertyanim
Preface:
In the previous article, the basis and comparison of traditional View animation and Property animation are briefly compared with the simple basis of Android animation system. In this article, we will conduct a comprehensive and in-depth discussion on PropertyAnimation, this article can be divided into two parts. The sixth part can be used as the demarcation point. The first five sections
The Res directory is primarily a resource file!Layout layouts This is what you often see with the user interface of the XML file, is the arrangement of each view and nested, nothing to say the style and theme, style is mainly refers to the display style of the view;Place the image file in the res/raw/directory, which avoids being automatically optimized.Values are some constant XML files set by the program staff, which are easy to modify and use, generally have strings,colors and so on.Assets f
2012-03-23 15:51 16144 People read Comments (5) favorite reports Android[Java]View Plaincopy
"http://schemas.android.com/apk/res/android" >
Android:fromxdelta="0"
Android:toxdelta="100%"
android:duration="/> "
android:fromalpha="0.0"
Android:toalpha="1.0"
android:duration="/> "
which Translate position transfer animation effect integer value: NBSP ; Fromxdelta property is the position of the x-coordinate at the start of the animation T
"http://schemas.android.com/apk/res/android" >
Android:fromxdelta="0"
Android:toxdelta="100%"
android:duration="/> "
android:fromalpha="0.0"
Android:toalpha="1.0"
android:duration="/> "
which Translate position transfer animation effect integer value: NBSP ; Fromxdelta property is the position of the x-coordinate at the start of the animation Toxdelta Property is the position of the x-coordinate at the end of the animation Fromydel
Where:
translate position transfer animation effect integer value: the fromxdelta attribute is the position on the X coordinate when the animation starts. the toxdelta attribute is the position on the X coordinate when the animation ends. the
Animator AnimationAnimation is used to make the UI dynamic and stylish.
There are two animation methods in Android:
One way is to fill in the animation tween animation, that is, you define a start and end, and the middle part is calculated by the program.The other is frame-by-frame animation Frame Animation, which means that a frame-by-frame player becomes an animation when it is connected.
Animation effects:1. Mobile (Translation)2. Transparency (alpha)3. Rotate)4. Scale)
Now we will explain i
This example describes the motion tween animation for Android. Share to everyone for your reference, specific as follows:
In front of the "Android animation frame Animation", today to explain the use of tween animation in detail.
Also, before starting an instance demo, refer to a passage in the Official document:
Tween animation is the process of manipulating a control to show its rotation, gradient, move, and zoom, which we call motion tweens. We can define animations as XML, or we can encod
Android Animation knowledge summary Animation AnimationSet LayoutAnimationThis article by PurpleSword (jzj1993) original, reproduced please indicate the original web site http://blog.csdn.net/jzj1993There are several common animations
Control View animation (such as the Circular progress bar in the Dialog Window) LayoutAnimation animation of the ViewGroup, each sub-control follows the set sequence and delays playing the animation.
Commonly used anim
iOS version big turntable
Using the Cabasicanimation animation with iOS to achieve a simple, core code :
Rotating animation
Cabasicanimation *anim = [cabasicanimation animationwithkeypath:@ "transform.rotation"];
Start position
[Anim Setfromvalue:[nsnumber numberwithfloat:0]];
End
[Anim settovalue:[nsnumber NUMBERWITHFLOAT:M_PI * 2.97]];
Core Animation 1, coreanimation
1 // use the view as an attribute to facilitate multiple different animations. 2 _ myView = [[UIView alloc] init]; 3 _ myView. layer. position = CGPointMake (100,100); 4 _ myView. layer. bounds = CGRectMake (0, 0,100,100); 5 _ myView. backgroundColor = [UIColor blueColor]; 6 [self. view addSubview: _ myView]; 7 [_ myView release];
1 // create an animation object of the CABasicAnimation type and execute an animation for the position attribute of CALayer. 2 CABasic
Cabasicanimation is a subclass of capropertyanimation. It can be used to achieve some basic animation effects. It can make a calayer attribute gradient from one value to another. The following describes how to use cabasicanimation to implement several simple animations.
* Initialize a uiview and add it to the Controller's view. Then, execute an animation on the uiview layer. The following self refers to the Controller.
1 _myView = [[UIView alloc] init];2 _myView.layer.position = CGPointMake(100,
Create a new folder under res named Anim, creating an XML file, such as creating a a1.xmlWrite an animation hereAlpha: Gradient Transparency effectRotate: Rotate animation effectScale: Stretch animation effectTranslate: Panning animation effectUse the following XML to create animation-part of the animation, details see source code:Alpha: Gradient Transparency effect- from there to noneA1.xmlrotate: Rotate animation effect-ClockwiseRotate.xmlscale: Str
static feelingkCAMediaTimingFunctionEaseIn(Gradual): the animation enters slowly and then accelerates the exit.kCAMediaTimingFunctionEaseOut(Fade out): the animation enters at full speed and then slows down to the destination.kCAMediaTimingFunctionEaseInEaseOut(Gradual fade-out): the animation enters slowly, accelerates in the middle, and then slows down to reach the destination. This is the default animation action.CAAnimationDelegate (animation proxy method)
- (void)animationDidStart:(CAAnima
the end
Android: repeatCount
Repeated times
Integer-1 is an infinite loop
Android: duration
Animation duration
Integer
Android: startOffset
Animation time interval (animation duration before execution)
Long
Android: zAdjustment
Define the z order Transformation of an animation
[Normal] or [top] or [bottom]
Android: detachWallpaper
Unknown
Boolean
Here we will explain in detail t
end
Android:repeatcount
Number of repetitions
Integer-1 for Infinite loops
Android:duration
Animation duration
Integer
Android:startoffset
Animation interval (dwell time before animation execution)
Long
Android:zadjustment
Defines the transformation of the animation Z order
[Normal] or [top] or [bottom]
Android:detachwallpaper
Unknown
Boolean
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.